package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.model.JarPackage;
import com.stylefeng.guns.modular.system.dao.JarPackageMapper;
import com.stylefeng.guns.modular.system.service.IJarPackageService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * jar包管理 服务实现类
 * </p>
 *
 * @author kutty
 * @since 2018-10-26
 */
@Service
public class JarPackageServiceImpl extends ServiceImpl<JarPackageMapper, JarPackage> implements IJarPackageService {

    @Resource
    JarPackageMapper jarPackageMapper;

    public JarPackage selByJarName(String jarName){
        return jarPackageMapper.selByJarName(jarName);
    }

    public List<JarPackage> upJarPackage(String jarName, Integer jarVersion){
        return jarPackageMapper.upJarPackage(jarName,jarVersion);
    }

}
